# Uncomment this if you reference any of your controllers in activate
# require_dependency 'application'

class LangTagsExtension < Radiant::Extension
  version "1.0"
  description "Language tags"
  url "http://code.google.com/p/radiant-extensions/"
  
  def activate
    Page.class_eval do
      include LangTags
      
      def lang
        url[1..2]
      end

      def lang_url
        url[3..-1]
      end
    end
  end
  
  def deactivate
  end  
end

